package edu.ccut.saturn.workflow.common;

public class Constants {
	@SuppressWarnings("unused")
	public static final String WORKFLOW = "saturn-workflow";
	public static final String WORKFLOW_INFORMATION = "information";
	public static final String WORKFLOW_KEY = "key";
	public static final String WORKFLOW_X = "x";
	public static final String WORKFLOW_Y = "y";
	public static final String WORKFLOW_NAME = "name";
	public static final String WORKFLOW_VERSION = "version";
	public static final String WORKFLOW_AUTHOR = "author";
	public static final String WORKFLOW_DESCRIPTION = "description";
	public static final String ACTIVITY = "activity";
	public static final String ACTIVITY_ID = "id";
	public static final String ACTIVITY_NAME = "name";
	public static final String ACTIVITY_NEXT = "next";
	public static final String ACTIVITY_TYPE = "type";
	public static final String ACTIVITY_TYPE_START = "start";
	public static final String ACTIVITY_TYPE_MAN = "man";
	public static final String ACTIVITY_TYPE_AUTO = "auto";
	public static final String ACTIVITY_TYPE_END = "end";
	public static final String ACTIVITY_TYPE_DECISION = "decision";
	public static final String ACTIVITY_TYPE_SUB = "sub";
	public static final String DECISION_DEFAULT = "default";
	public static final String ACTIVITY_URL = "url";
	public static final String ACTIVITY_IF = "if";
	public static final String ACTIVITY_IF_THEN = "then";
	public static final String ACTIVITY_IF_EXPR = "expr";
	public static final String ACTIVITY_STARTLIMIT = "startLimit";
	public static final String ACTIVITY_STARTLIMIT_ID = "id";
	public static final String ACTIVITY_STARTLIMIT_LOGIC = "logicKey";
	public static final String ACTIVITY_STARTLIMIT_LOGIC_FULLKEY = "fullKey";
	public static final String ACTIVITY_STARTLIMIT_LOGIC_PARAMETER = "parameter";
	public static final String ACTIVITY_STARTLIMIT_LOGIC_PARAMETER_ID = "id";
	public static final String ACTIVITY_ISAUTOCANCEL = "isAutoCancel";
	public static final String ACTIVITY_AFTER_REQUEST = "afterRequest";
	public static final String ACTIVITY_OBTAINFROMACTIVITYRADIOBUTTON = "obtainFromActivityRadioButton";
	public static final String ACTIVITY_FINISHREQUIREDPERCENT = "finishRequiredPercent";
	public static final String ACTIVITY_FINISHREQUIREDNUM = "finishRequiredNum";
	public static final String ACTIVITY_ISFINISHALL = "isFinishAll";
	public static final String ACTIVITY_WORKITEMNUMSTRATEGY = "workitemNumStrategy";
	public static final String ACTIVITY_ISMULWORKITEM = "isMultiWorkItem";
	public static final String ACTIVITY_USERFROM = "userFrom";
	public static final String ACTIVITY_CUSTOM_USER_LOGIC = "customDefineParticipant";
	public static final String ACTIVITY_USERS = "users";
	public static final String ACTIVITY_USERS_USER = "user";
	public static final String ACTIVITY_USERS_USER_ID = "id";
	public static final String ACTIVITY_USERS_USER_NAME = "name";
	public static final String ACTIVITY_USERS_USER_TYPE = "type";
	public static final String ACTIVITY_FORMDATA = "formData";
	public static final String ACTIVITY_FORMDATA_DATA = "data";
	public static final String ACTIVITY_FORMDATA_DATA_KEY = "key";
	public static final String ACTIVITY_FORMDATA_DATA_NAME = "name";
	public static final String ACTIVITY_FORMDATA_DATA_PROPERTY = "property";
	public static final String ACTIVITY_FORMDATA_DATA_PROPERTY_VALUE = "value";
	public static final String ACTIVITY_FORMDATA_DATA_TYPE = "type";
	public static final String ACTIVITY_FORMDATA_DATA_TYPE_REDIOLIST = "radio";
	public static final String ACTIVITY_FORMDATA_DATA_TYPE_SELECT = "select";
	public static final String ACTIVITY_FORMDATA_DATA_ACCESSTYPE = "accessType";
	public static final String ACTIVITY_FORMDATA_DATA_ACCESSTYPE_READ = "read";
	public static final String ACTIVITY_FORMDATA_DATA_ACCESSTYPE_WRITE = "read-write";
	public static final String ACTIVITY_FORMDATA_DATA_REQUIRED = "required";
	public static final String ACTIVITY_DESCRIPTION = "description";
	public static final String ACTIVITY_VALIDATEUSERLOGIC = "validateUserLogic";
	public static final String ACTIVITY_OFFSETMODE = "offsetMode";
	public static final String ACTIVITY_TIMELIMIT = "timeLimit";
	public static final String ACTIVITY_POLYMEMODE = "polymeMode";
	public static final String ACTIVITY_STATE = "state";
	public static final String ACTIVITY_STARTPOLICY = "startPolicy";
	public static final String ACTIVITY_LOGICKEY = "logickey";
	public static final String ACTIVITY_LOGICKEY_KEY = "key";
	public static final String ACTIVITY_LOGICKEY_KEY_FULLKEY = "fullKey";
	public static final String ACTIVITY_LOGICKEY_PARAMETER = "parameter";
	public static final String ACTIVITY_LOGICKEY_PARAMETER_ID = "id";
	public static final String ACTIVITY_SUBPROCESS = "subProcess";
	public static final String ACTIVITY_SUBPROCESS_TRANSFERMODE = "transferMode";
	
	//启动限制扩展逻辑必传参数
	public static final String STARTLIMIT_EXTLOGIC_PARAMETER_PDI ="process_define_id";
	public static final String STARTLIMIT_EXTLOGIC_PARAMETER_IOS ="isOkforStart";
	
	/**
	 * 是否多工作项
	 */
	public static final String ACTIVITY_ISMULWORKITEMS = "-1";
	public static final String ACTIVITY_WORKITEM_FINISHALL = "1";
	//单一分支
	public static final String ACTIVITY_DECISION_SINGLE = "1";
	//全部分支
	public static final String ACTIVITY_DECISION_ALL = "2";
	//多路分支
	public static final String ACTIVITY_DECISION_MULTI = "3";
	
	//单一聚合
	public static final String ACTIVITY_POLYMEMODE_SINGLE = "1";
	//全部聚合
	public static final String ACTIVITY_POLYMEMODE_ALL = "2";
	//多路聚合
	public static final String ACTIVITY_POLYMEMODE_MULTI = "3";
	/**
	 * 流程状态
	 */
	//执行
	public static final int WORKFLOW_STATE_RUNNING = 2;
	public static final int WORKFLOW_STATE_FINISH = 7;
	
	/**
	 * 活动状态
	 */
	//运行
	public static final int ACTIVITY_STATE_RUNNING = 2;
	//完成
	public static final int ACTIVITY_STATE_FINISH = 7;
	
	/**
	 * 子流程活动的调用方式
	 */
	//同步
	public static final String SUBPRORCESS_TRANSFERMODE_SYNCHRONIZATION = "1";
	//异步
	public static final String SUBPRORCESS_TRANSFERMODE_ASYNCHRONISM = "2";
	
	/**
	 * 工作项的当前状态
	 */
	//运行
	public static final int WORKITEM_STATE_RUNNING = 10;
	//完成
	public static final int WORKITEM_STATE_FINISH = 12;
	//取消(TODO)
	public static final int WORKITEM_STATE_ABORTED = 14;
	
	/**
	 * 工作项的业务状态
	 */
	//正常
	public static final String WORKITEM_BIZSTATE_COMMON = "0";
	//代理
	public static final String WORKITEM_BIZSTATE_AGENT = "1";
	//代办
	public static final String WORKITEM_BIZSTATE_DELEGATE = "2";
	//协办
	public static final String WORKITEM_BIZSTATE_HELP = "3";
	//待确认
	public static final String WORKITEM_BIZSTATEHELP_WAITAFFIRM = "4";
	//拒绝
	public static final String WORKITEM_BIZSTATE_REJECT = "5";
	//重做
	public static final String WORKITEM_BIZSTATE_HELP_REDO = "6";
	//收回
	public static final String WORKITEM_BIZSTATE_WITHDRAW = "7";
	
/*	*//**
	 * 代办的操作类型
	 *//*
	public static final String DELEGATE_OPERATER_TYPE_HELP = "1";
	public static final String DELEGATE_OPERATER_TYPE_DELEGATE = "2";
	public static final String DELEGATE_OPERATER_TYPE_HELP_REDO = "3";*/
	
	/**
	 * 获得参与者方式
	 */
	public static final String OBTAINFROMACTIVITYRADIOBUTTON_COMMON ="1";
	public static final String OBTAINFROMACTIVITYRADIOBUTTON_START ="2";
	public static final String OBTAINFROMACTIVITYRADIOBUTTON_ACTIVITY="3";
	public static final String OBTAINFROMACTIVITYRADIOBUTTON_CUSTOM="4";
	public static final String OBTAINFROMACTIVITYRADIOBUTTON_CHANGE="5";//替换当前活动参与者
	
	
	public static final String CUSTOM_USER_LOGIC_USER_NAME= "userName";
	public static final String CUSTOM_USER_LOGIC_USER_SerialNo= "userSerialNo";
	/**
	 * 序列1111111111111
	 */
	public static final String WF_PROCESS_DEFINE_SEQ = "WF_PROCESS_DEFINE_SEQ";
	public static final String WF_PROCESS_INSTANCE_SEQ = "WF_PROCESS_INSTANCE_SEQ";
	public static final String WF_ACTIVITY_INSTANCE_SEQ = "WF_ACTIVITY_INSTANCE_SEQ";
	public static final String WF_WORKITEM_INSTANCE_SEQ = "WF_WORKITEM_INSTANCE_SEQ";
	public static final String WF_WIPARTICIPANT_SEQ = "WF_WIPARTICIPANT_SEQ";
	public static final String WF_TRANSITION_SEQ = "WF_TRANSITION_SEQ";
	
	
	/**
	 * 参与者类型
	 */
	public static final String PARTICIPANT_TYPE_USER = "user"; 
	public static final String PARTICIPANT_TYPE_ROLE = "role"; 
	public static final String PARTICIPANT_TYPE_DEPARTMENT = "department"; 
	public static final String PARTICIPANT_TYPE_POSITION = "position"; 
	
	
	/**
	 * 自动启动工作流
	 */
	public static final String WF_AUTOSTART_LOGIC="edu.ccut.saturn.workflow::/publicModule/logic/StartWorkFlow.logic";
	public static final String GET_WORKFLOW_CONTENT_LOGIC = "edu.ccut.saturn.workflow::/parseWorkFlowModule/logic/GetWorkFlowContent.logic";
	/**
	 * 工作流数据项
	 */
	public static final String SATURNDATA_WF_COUNT ="http://edu.ccut.saturn.workflow/persistenceModule/data::WF_COUNT";
	public static final String SATURNDATA_WF_ACTIVITY_INSTANCE ="http://edu.ccut.saturn.workflow/persistenceModule/data::WF_ACTIVITY_INSTANCE";
	public static final String SATURNDATA_WF_TRANSITION ="http://edu.ccut.saturn.workflow/persistenceModule/data::WF_TRANSITION";
	public static final String SATURNDATA_WF_WORKITEM_INSTANCE ="http://edu.ccut.saturn.workflow/persistenceModule/data::WF_WORKITEM_INSTANCE";
	public static final String SATURNDATA_WF_WIPARTICIPANT ="http://edu.ccut.saturn.workflow/persistenceModule/data::WF_WIPARTICIPANT";
	public static final String SATURNDATA_WF_PROCESS_DEFINE ="http://edu.ccut.saturn.workflow/persistenceModule/data::WF_PROCESS_DEFINE";
	public static final String SATURNDATA_WF_PROCESS_INSTANCE ="http://edu.ccut.saturn.workflow/persistenceModule/data::WF_PROCESS_INSTANCE";
	public static final String SATURNDATA_WF_SATURN_AUTH_USER ="http://edu.ccut.saturn.workflow/persistenceModule/data::WF_SATURN_AUTHORITY_USER";
	public static final String SATURNDATA_WF_DELEGATE ="http://edu.ccut.saturn.workflow/persistenceModule/data::WF_DELEGATE";
	public static final String SATURNDATA_WF_AGENT ="http://edu.ccut.saturn.workflow/persistenceModule/data::WF_AGENT";
	public static final String SATURNDATA_WF_AGENTITEM ="http://edu.ccut.saturn.workflow/persistenceModule/data::WF_AGENTITEM";
	public static final String SATURNDATA_WF_DELEGATE_MESSAGE ="http://edu.ccut.saturn.workflow/persistenceModule/data::WF_DELEGATE_MESSAGE";
	/**
	 * 代办当前状态
	 */
	public static final String DELEGATE_STATE_INVALID = "0";
	public static final String DELEGATE_STATE_RUNNING = "1";
	public static final String DELEGATE_STATE_FINISH = "2";
}
